import java.util.Scanner;
public class print04 {
    public static void main(String[] args) {
        //活空心菱形
        //          *          1 *      2空格
        //        *  *         2*       1
        //      *     *        2*        0
        //        *  *         2*
        //          *            1*
        //上半部分
        Scanner x=new Scanner(System.in);
        int n=x.nextInt();
        for (int i = 1; i <= n; i++) {
            //打印空格
            for (int j = 1; j <= n - i; j++) {
                System.out.print(" ");
            }
            //打印*
            for (int k = 1; k <= 2 * i - 1; k++) {
                if (k == 1 || k == 2 * i - 1) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println("");
        }
        //下半部分
        for (int i = 1; i <= n-1; i++) {
            //打印空格
            for (int j = 1; j <= i; j++) {
                System.out.print(" ");
            }
            //打印*
            for (int k = 1; k <= 2*(n-i)-1; k++) {
                if (k == 2*(n-i)-1|| k == 1) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println("");
        }
    }
}
